<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on入门</title>
</head>
<body>
  <div id="app">
    <input type="button" value="点我一下试试" v-on:click="handle()">
    <input type="button" value="点我一下试试" @click="handle()">
  </div>
</body>
<script type="module">
  import {createApp} from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
  createApp({
      data() {
          return {
            name: 'vue',
          }
      },
    methods:{
        handle(){
          console.log('点击了')
        }
    }
  }).mount("#app");
</script>
</html>